﻿using com.fmtx.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.fmtx.IDal;

namespace com.fmtx.Dal
{
    public class PraiseServer : BaseServer<Praise>,IPraise
    {
        public bool HasPraise(int uid, Target target, int tid)
        {
            var res = db.AllList(w => w.Uid == uid && w.TagType == target && w.TagId == tid).FirstOrDefault();
            return res != null && res.Id > 0;
        }
    }
}
